const HMKEY = 'heimatoutiao'

function saveToken(obj) {
  localStorage.setItem(HMKEY, JSON.stringify(obj))
}

function getToken() {
  return JSON.parse(localStorage.getItem(HMKEY))
}

function removeToken() {
  localStorage.removeItem(HMKEY)
}
export {
  saveToken,
  getToken,
  removeToken
}
